﻿@model CDIO.Models.RecordModel
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    
}
<div class="container-fluid">
                <div class="row-fluid">
                    <div class="span12">

                        <!-- 内容左侧当前页描述tab -->
                        <ul class="breadcrumb">
                            <li><a class="btn_logo" ><i class="icon-home"></i></a><span class="divider">&nbsp;</span></li>
                            <li><a href="#">数据统计</a><span class="divider">&nbsp;</span></li>
                            <li><a href="#">礼品兑换记录</a><span class="divider-last">&nbsp;</span></li>

                            <!-- 内容右侧搜索框 -->
                            <li class="pull-right search-wrap">
                                        <form class="hidden-phone" />
                                        <div class="search-input-area">
                                            <input id=" " class="search-query" type="text" placeholder="搜索" /><i class="icon-search"></i></div>
                                        </form>
                            </li>
                         </ul>
                    </div>
                </div>
                <div id="page" class="dashboard">
                  
                    <!-- 列表 -->
                    <div class="row-fluid">
                        <div class="span12">
                            <div class="widget">
                                <div class="widget-title">
                                    <h4><i class="icon-tags"></i>礼品兑换记录</h4>
                                    <span class="tools"><a href="javascript:;" class="icon-chevron-down"></a><a href="javascript:;" class="icon-remove"></a></span>
                                </div>
                                <div class="widget-body">

                                    <!-- 排列顺序 -->
                                    <div class="pull-right">
                                    <select data-placeholder="排序" class="chosen input-small" tabindex="-1" id="inputSort">
                                    <option value="0" />
                                    <option value="1" />积分
                                    <option value="1" />时间
                                    </select>
                                    </div>

                                    <div class="space7">
                                    </div>

                                     <div class="space7">
                                    </div>

                                    <table class="table table-striped table-bordered table-advance table-hover">
                                        <!-- 列表标题栏 -->
                                        <thead>
                                            <tr>
                                                <th>
                                                    <i class="icon-leaf"></i><span class="hidden-phone">记录ID</span>
                                                </th>
                                                <th>
                                                    <i class="icon-user"></i><span class="hidden-phone ">用户ID</span>
                                                </th>
                                                <th>
                                                    <i class="icon-tags"></i><span class="hidden-phone">礼品ID</span>
                                                </th>
                                                <th>
                                                    <i class="icon-tags"></i><span class="hidden-phone">礼品名称</span>
                                                </th>
                                                <th>
                                                    <i class="icon-tags"></i><span class="hidden-phone">积分要求</span>
                                                </th>
                                                <th>
                                                    <i class="icon-tags"></i><span class="hidden-phone">用户名称</span>
                                                </th>
                                                <th>
                                                    <i class="icon-tags"></i><span class="hidden-phone">用户手机</span>
                                                </th>
                                                <th>
                                                    <i class="icon-tags"></i><span class="hidden-phone">兑换时间</span>
                                                </th>
                                                <th>
                                                    <i class="icon-tags"></i><span class="hidden-phone">删除</span>
                                                </th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        @{ 
                                            if (Model.UserModel_record != null)
                                            {
                                                foreach (var item in Model.UserModel_record)
                                                { 
                                                        <tr>
                                                    <td class="highlight">
                                                        <div class="info"></div>
                                                        <a class="text_gift_id">@item._record_id</a>
                                                    </td>
                                                    <td class="text_gift_name">
                                                        @item._record_userid
                                                    </td>
                                                    <td>
                                                       @item._record_giftid
                                                    </td>
                                                    <td>
                                                        @item._record_giftname
                                                    </td>
                                                    <td>
                                                        @item._record_giftcredit
                                                    </td>
                                                    
                                                    <td>
                                                        @item._record_username
                                                    </td>
                                                    <td>
                                                        @item._record_userphone
                                                    </td>
                                                    <td>
                                                        @item._record_gettime
                                                    </td>
                                                    <td class="highlight">
                                                       <a  class="btn_record_delete">删除</a>
                                                    </td>
                                                    </tr>
                                                }
                                            }
                                        }
                                           @* @for (int i = 0; i < 10; i++)
                                            {
                                                <tr>
                                                <td class="highlight">
                                                    <div class="info"></div>
                                                    <a href="#" class="text_gift_id">100001</a>
                                                </td>
                                                <td class="text_gift_name">
                                                    100001
                                                </td>
                                                <td class="text_gift_name">
                                                    100001
                                                </td>
                                                <td>
                                                    Mac air
                                                </td>
                                                <td>
                                                    1000
                                                </td>
                                                <td>
                                                    CDIO
                                                </td>
                                                <td>
                                                    18650378486
                                                </td>
                                                <td>
                                                    24/06/2013
                                                </td>
                                                <td class="highlight">
                                                    <a href="#" class="btn_user_delete">删除</a>
                                                </td>
                                            </tr>
                                            }*@
                                        </tbody>

                                    </table>
                                    <div class="space7">
                                    </div>
                                     
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

    

